package com.paipai.feign;

import com.paipai.Vo.MyOrderVo;
import com.paipai.entity.POrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient(name = "woniu-service-gateway")
public interface OrderFeign {
    @RequestMapping("/com-service-order/order/selectOrder")
    List<MyOrderVo> selectOrder(@RequestParam(value ="buyerId" ) Long buyerId, @RequestParam(value ="state" ) Integer state);

    @RequestMapping("/com-service-order/order/pay")
    Integer pay(@RequestParam (value ="name") String name,@RequestParam(value = "productId")Long productId,@RequestParam(value = "state") Integer state);

    @RequestMapping("/com-service-order/order/selectMyOrder")
    List<MyOrderVo> selectMyOrder(@RequestParam (value ="name") String name, @RequestParam(value ="state" ) Integer state);
}
